<?php

header("Content-type:text/html;charset=utf-8");

$mobile = trim($_POST['mobile']);
// $mobile = '13865935707';
$len = strlen($mobile);
if ($len == 11) {
	$hid = substr($mobile,3,4);
	$mobile = str_replace($hid,'****',$mobile);	
} else {
	echo '号码格式错误';
}

var_dump($mobile);

	

















